home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / Macintosh Programmer’s Workshop / MPW 3.1 / MPW / Interfaces / CIncludes / DeskBus.h < prev    next >
Text File  |  1990-12-13  |  2KB  |  66 lines

  1. /************************************************************
  2.  
  3. Created: Thursday, September 7, 1989 at 3:33 PM
  4.     DeskBus.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.     Copyright Apple Computer, Inc.    1987 -1989
  9.     All rights reserved
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. #ifndef __DESKBUS__
  15. #define __DESKBUS__
  16.  
  17. #ifndef __TYPES__
  18. #include <Types.h>
  19. #endif
  20.  
  21. typedef char ADBAddress;
  22.  
  23.  
  24. struct ADBOpBlock {
  25.     Ptr dataBuffPtr;        /*address of data buffer*/
  26.     Ptr opServiceRtPtr;     /*service routine pointer*/
  27.     Ptr opDataAreaPtr;        /*optional data area address*/
  28. };
  29.  
  30. typedef struct ADBOpBlock ADBOpBlock;
  31. typedef ADBOpBlock *ADBOpBPtr;
  32.  
  33. struct ADBDataBlock {
  34.     char devType;            /*device type*/
  35.     char origADBAddr;        /*original ADB Address*/
  36.     Ptr dbServiceRtPtr;     /*service routine pointer*/
  37.     Ptr dbDataAreaAddr;     /*data area address*/
  38. };
  39.  
  40. typedef struct ADBDataBlock ADBDataBlock;
  41. typedef ADBDataBlock *ADBDBlkPtr;
  42.  
  43. struct ADBSetInfoBlock {
  44.     Ptr siServiceRtPtr;     /*service routine pointer*/
  45.     Ptr siDataAreaAddr;     /*data area address*/
  46. };
  47.  
  48. typedef struct ADBSetInfoBlock ADBSetInfoBlock;
  49. typedef ADBSetInfoBlock *ADBSInfoPtr;
  50.  
  51. #ifdef __cplusplus
  52. extern "C" {
  53. #endif
  54. pascal void ADBReInit(void)
  55.     = 0xA07B;
  56. pascal OSErr ADBOp(Ptr data,ProcPtr compRout,Ptr buffer,short commandNum);
  57. pascal short CountADBs(void);
  58. pascal ADBAddress GetIndADB(ADBDataBlock *info,short devTableIndex);
  59. pascal OSErr GetADBInfo(ADBDataBlock *info,ADBAddress adbAddr); 
  60. pascal OSErr SetADBInfo(ADBSetInfoBlock *info,ADBAddress adbAddr);
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64.  
  65. #endif
  66.